package com.yonyougov.devops.cruxcisupport.user.dto.controller;

import com.yonyougov.devops.fwc.api.dto.BaseRequestDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "用户新增")
public class UserAddRequestDto extends BaseRequestDto {
    @NotEmpty
    @ApiModelProperty(value = "用户名称", required = true)
    private String userName;

    @NotEmpty
    @ApiModelProperty(value = "用户密码", required = true)
    private String password;

    @NotEmpty
    @ApiModelProperty(value = "用户邮箱")
    private String email;

    @ApiModelProperty(value = "用户备注描述")
    private String remark;

    @NotEmpty
    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @NotNull
    @ApiModelProperty(value = "用户身份")
    private Integer officeType;
}
